Repository navigation
Conversation
1 of 5 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #521 +/- ##
==========================================
+ Coverage 45.71% 45.78% +0.07%
==========================================
Files 136 136
Lines 10363 10366 +3
Branches 1285 1297 +12
==========================================
+ Hits 4737 4746 +9
+ Misses 5624 5618 -6
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
mojomex
enabled auto-merge (squash)
October 29, 2026 03:02
mojomex
disabled auto-merge
October 29, 2026 03:02
…ponding tests Signed-off-by: Autum60 <akiro.harada@tier4.jp>
Autumn60
force-pushed
the
fix/hesai-ignore-fault-messages
branch
from
November 2, 2026 00:33
0b2451e to
166e2bc
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Related Links
Description
Some Hesai sensors (e.g. the AT128P) send fault messages to the data port alongside point cloud packets. These packets start with SOP
0xCDDCand are 99 bytes long.HesaiDecodertreated them as truncated point cloud packets. It loggedPacket size mismatch: 99 | Expected at least: ...for each one, which is about 200 errors per second per sensor and buries the real errors in the log.HesaiDecoder::unpack()checks the SOP first and returns the newDecodeError::PACKET_IGNOREDfor fault messages, without logging. All other packets are handled as before, so truncated point cloud packets are still reported asPACKET_PARSE_FAILED.DecodeError::PACKET_IGNOREDis meant for any valid packet that carries no point cloud data (e.g. IMU or fault message packets), so other decoders can use it too.The content of the fault messages is not decoded.
Review Procedure
Build and run the unit tests:
colcon build --packages-up-to nebula_hesai --cmake-args -DBUILD_TESTING=ON colcon test --packages-select nebula_hesai nebula_hesai_decoders nebula_hesai_hw_interfaces colcon test-result --verboseNew test:
test_hesai_fault_messagefeeds aHesaiDecoder<PandarAT128>two packets:PACKET_IGNOREDand log no error.PACKET_PARSE_FAILEDand log one error.Test results
nebula_hesai,nebula_hesai_decodersandnebula_hesai_hw_interfacespass (ROS 2 Jazzy, Agnocast disabled).Remarks
Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.
Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.
Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.
CI Checks